package com.kingyun.gpsinspection.purificationservice.dao.mapper.som;


import com.kingyun.gpsinspection.purificationservice.facade.model.som.Conversation;

import java.util.List;
import java.util.Map;

/**
 * 消息Mapper
 */
public interface ConversationMapper {

    /**
     * 添加消息
     * @param record
     * @return
     */
    int insert(Conversation record);

    /**
     * 获取消息
     * @param map
     * @return
     */
    List<Conversation> queryConversations(Map map);

    /**
     * 把消息设置成已读
     * @param userId
     * @return
     */
    int readConversatrion(String userId);
}